package com.usvisatrack.core.common.search;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author YuCheng Hu
 *
 *Represents a facet returned from the search back end.  Facets have many values, and each value has a count of the number
 * of results that have the facet value.
 */
public class Facet {
	private List<FacetValue> values = new ArrayList<FacetValue>();
	private String name = "";
	private String displayName = "";
	
	public Facet() {
		
	}
	
	public Facet(String name, String displayName) {
		this.name = name;
		this.displayName = displayName;
	}

	public List<FacetValue> getValues() {
		return values;
	}

	public String getName() {
		return name;
	}

	public String getDisplayName() {
		return displayName;
	}
	
	public void addValue(FacetValue value) {
		this.values.add(value);
	}
	
	public void setValues(List<FacetValue> values) {
		this.values = values;
	}
}
